package com.itheima.service;

import com.itheima.pojo.Category;
import com.itheima.vo.CategoryVo;
import com.itheima.vo.PagingQueryVo;
import com.itheima.vo.UserCategoryVo;

import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.service
 * fileName :CategoryService
 * creationTime :2022-11-22 14:57
 */
public interface CategoryService {

    PagingQueryVo<Category> selectPage(Integer page, Integer pageSize);

    Boolean insertCategory(Category category);

    Boolean updateCategory(Category category);

    Boolean deleteCategory(String id);

    List<Category> selectByType(String type);

    List<UserCategoryVo> selectCategories();

}
